import request from '@/request/index.js'




export function createInfo(data) {
	return request.post({
		url: `/api/index/createInfo`,
		data
	});
}
export function userMoneyLog(data) {
	return request.get({
		url: `/api/user/userMoneyLog`,
		data
	});
}
export function cateList() {
	return request.get({
		url: `/api/index/cateList`,
	});
}
export function infoList(data) {
	let locat = {}
	if (uni.getStorageSync("locat")) {
		locat = uni.getStorageSync("locat");
	}
	return request.post({
		url: `/api/index/infoList`,
		data: {
			...data,
			...locat
		}
	});
}
export function myViewInfo(data) {
	return request.get({
		url: `/api/user/myViewInfo`,

	});
}
export function myCollectInfo(data) {
	return request.post({
		url: `/api/user/myCollectInfo`,

	});
}
export function bannerList() {
	return request.get({
		url: `/api/index/bannerList`,

	});
}
export function delInfo(data) {
	return request.get({
		url: `/api/user/delInfo`,
		data
	});
}
export function infoDetail(data) {
	return request.get({
		url: `/api/index/infoDetail`,
		data
	});
}
export function getInfo(data) {
	let locat = {}
	if (uni.getStorageSync("locat")) {
		locat = uni.getStorageSync("locat");
	}
	return request.get({
		url: `/api/index/getInfo`,
		data: {
			...data,
			...locat
		}
	});
}
export function addCollectInfo(data) {
	return request.post({
		url: `/api/index/addCollectInfo`,
		data
	});
}